-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(arcgis): support arcgis content #335
feat(arcgis): support arcgis content #335
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
Why not make this "ready for review"? |
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
src/components/layers-panel/arcgis-import-panel/arcgis-import-panel.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left minor comments. Can be quickly fixed and merged.
src/utils/arcgis.ts
Outdated
@@ -97,3 +101,49 @@ export const arcGisRequestLogout = async () => { | |||
} | |||
return await updateSessionInfo(); | |||
}; | |||
|
|||
class ArcGisContentClass implements ArcGisContent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class ArcGisContentClass implements ArcGisContent { | |
class ArcGisContent implements IArcGisContent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
overflow: hidden; | ||
`; | ||
|
||
const TableHeaderRow = styled.tr``; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary component. Use tr
in place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
year: "numeric", | ||
}); | ||
return formatter.format(date); | ||
type Column = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move outside of the component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
columnName?: string; | ||
}; | ||
|
||
const columns: Column[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move outside to component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
return ( | ||
<TableHeaderCell | ||
width={column.width} | ||
key={sortDataColumnName ? sortDataColumnName : ""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add an id
field to the columns config to use it in JSX?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
<TableRowCell | ||
width={column.width} | ||
fontWeight={column.fontWeight} | ||
key={`${dataColumnName ? dataColumnName : ""}${contentItem.id}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
No description provided.